# coding:utf-8
from flask import jsonify, g, json

from app.libs.redprint import Redprint
# from app.libs.token_auth import auth
from app.models.user import User
from app.models.base import db

api = Redprint('user')


@api.route('', methods=['GET'])
def get_user():
    # uid = g.user.uid
    user = User.query.all()
    # res_json = json.dumps(user)
    print(type(user))
    print(user)

    return user
